#include <iostream>
#include <cstring>

using namespace std;

char* stringreverse(char *str)
{
    size_t len = strlen(str);
    for(int i=0; i<len/2; i++)
    {
        char temp = str[i];
        str[i] = str[len-1-i];
        str[len-1-i] = temp;
    }
    return str;
}


int main(void)
{
    char str[31] = "Chicken";
    stringreverse(str);
    cout << str << endl;
    return 0;
}
